
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { JmsglEntity } from './entities/jmsglentity';

import { JmsglProxy } from './jmsglproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/businessdevelopmentcenter/jmgl/v1.0/mdtj_frm',
    entityType: JmsglEntity
})
export class JmsglRepository extends BefRepository<JmsglEntity> {
    public name = 'JmsglRepository';

    public proxy: JmsglProxy;
    public paginationInfo = {
        JmsglEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(JmsglProxy, null);
    }
}